
* {
  margin: 0 auto;
  padding: 0;
}

h1 {
  width: 80%;
  height: 80px;
  background-color: skyblue;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

h1>p {
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 50px;
  display: none;
}

h1>p.active {
  display: block;
}

h1>p>span {
  color: red;
}

/* 轮播图大小控制 */
.relay {
  height: 800px;
  width: 80%;
  background-color: pink;
}

html,
body {
  position: relative;
  height: 100%;
}

body {
  background: #eee;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
  margin: 0;
  padding: 0;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

